<html>
<title>
The Jsp Page To Compare Two Numbers
</title>
<body>
<%@ page language="java" import="java.util.*, java.io.*" %>

<%! 
    String strFirstNumber = null;
    String strSecondNumber = null;  
    int intFirstNumber;
    int intSecondNumber;
%>

<%
    strFirstNumber = (String)request.getParameter("firstNumber");
    intFirstNumber = Integer.parseInt(strFirstNumber);
    strSecondNumber = (String)request.getParameter("secondNumber");
    intSecondNumber = Integer.parseInt(strSecondNumber);
%>

<h2><center>
<% if (intFirstNumber > intSecondNumber)   
      out.println("第一个数更大The first number is bigger!");
   else if (intFirstNumber == intSecondNumber)
      out.println("两个数一样大These two numbers are equal!");
   else
      out.println("第二个数更大 The second number is bigger!");
%>
</center></h2>

<br>


</body>
</html>

